home *** CD-ROM | disk | FTP | other *** search
- // child.c example 3b
- // cl /AL /Lp child.c
- // execpgm
-
- // Notice you do not need to bind this program unless you want to run it as
- // a stand alone. Execpgm is already bound and therefore the processor is
- // already in protected mode by the time this program is reached.
-
- #define NMSG 1800
-
- unsigned far pascal DosSleep(unsigned long);
-
- main()
- {
- int i;
- printf(" child started ");
- for ( i = 1; i <= NMSG; i++) {
- printf("C");
- DosSleep(0); // Lets the DOS extender know to give
- } // time to other tasks (execpgm.c)
- printf(" child ended ");
- }